package org.example.lethear.dto.auth;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 用户登录请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginRequest {
    
    @NotBlank(message = "用户名或邮箱不能为空")
    @Size(min = 3, max = 50, message = "用户名或邮箱长度必须在3-50个字符之间")
    private String usernameOrEmail;
    
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 100, message = "密码长度必须在6-100个字符之间")
    private String password;
    
    /**
     * 是否记住我（用于延长token有效期）
     */
    private Boolean rememberMe = false;
} 